import { Constant } from './_utils'
const { ApiPrefix } = Constant

const database = [
  {
    "id": "1",
    "icon": "dashboard",
    "name": "Dashboard",
    "zh": {
      "name": "首页"
    },
    "pt-br": {
      "name": "Dashboard"
    },
    "route": "/dashboard"
  },
  {
    "id": "2",
    "breadcrumbParentId": "1",
    "name": "Devices",
    "zh": {
      "name": "设备管理"
    },
    "pt-br": {
      "name": "Devices"
    },
    "icon": "user",
    "route": "/devices"
  },
  {
    "id": "7",
    "breadcrumbParentId": "1",
    "name": "Posts",
    "zh": {
      "name": "用户管理"
    },
    "pt-br": {
      "name": "Posts"
    },
    "icon": "shopping-cart",
    "route": "/post"
  },
  {
    "id": "21",
    "menuParentId": "-1",
    "breadcrumbParentId": "2",
    "name": "Devices",
    "zh": {
      "name": "设备管理"
    },
    "pt-br": {
      "name": "Devices"
    },
    "route": "/devices/:id"
  },
  {
    "id": "3",
    "breadcrumbParentId": "1",
    "name": "Request",
    "zh": {
      "name": "Request"
    },
    "pt-br": {
      "name": "Requisição"
    },
    "icon": "api",
    "route": "/request"
  },
  {
    "id": "4",
    "breadcrumbParentId": "1",
    "name": "UI Element",
    "zh": {
      "name": "UI组件"
    },
    "pt-br": {
      "name": "Elementos UI"
    },
    "icon": "camera-o"
  },
  {
    "id": "45",
    "breadcrumbParentId": "4",
    "menuParentId": "4",
    "name": "Editor",
    "zh": {
      "name": "Editor"
    },
    "pt-br": {
      "name": "Editor"
    },
    "icon": "edit",
    "route": "/UIElement/editor"
  },
  {
    "id": "5",
    "breadcrumbParentId": "1",
    "name": "Charts",
    "zh": {
      "name": "Charts"
    },
    "pt-br": {
      "name": "Graficos"
    },
    "icon": "code-o"
  },
  {
    "id": "51",
    "breadcrumbParentId": "5",
    "menuParentId": "5",
    "name": "ECharts",
    "zh": {
      "name": "ECharts"
    },
    "pt-br": {
      "name": "ECharts"
    },
    "icon": "line-chart",
    "route": "/chart/ECharts"
  },
  {
    "id": "52",
    "breadcrumbParentId": "5",
    "menuParentId": "5",
    "name": "HighCharts",
    "zh": {
      "name": "HighCharts"
    },
    "pt-br": {
      "name": "HighCharts"
    },
    "icon": "bar-chart",
    "route": "/chart/highCharts"
  },
  {
    "id": "53",
    "breadcrumbParentId": "5",
    "menuParentId": "5",
    "name": "Rechartst",
    "zh": {
      "name": "Rechartst"
    },
    "pt-br": {
      "name": "Rechartst"
    },
    "icon": "area-chart",
    "route": "/chart/Recharts"
  }
]

module.exports = {
  [`GET ${ApiPrefix}/routes`](req, res) {
    res.status(200).json(database)
  },
}
